package com.sf.fy.uav.common.enums;

/**
 * @author LTQ
 */
public enum SubjectEnum {
    /**
     *
     */

    POP_UP_TIMES("POP_UP_TIMES", "弹窗弹出次数"),
    POP_UP_CLICK_TIMES("POP_UP_CLICK_TIMES", "弹窗点击次数");


    private String code;
    private String name;


    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    SubjectEnum(String code, String name) {
        this.code = code;
        this.name = name;
    }

    public static String getName(String value) {
        for (SubjectEnum ele : values()) {
            if (ele.getCode().equals(value)) {
                return ele.getName();
            }
        }
        return null;
    }
}
